import requests

def face_search(API_KEY, API_S, faceset_token, face_token):
    """该函数为调用face++ face_search接口"""
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/search'
    payload = {
        'api_key': API_KEY,
        'api_secret': API_S,
        'faceset_token': faceset_token,
        'face_token': face_token
    }

    r = requests.post(base_url, params=payload)
    return r.json()